import { PartialType } from '@nestjs/swagger';
import { IsNumber, IsOptional, IsString, Length, IsUUID } from 'class-validator';
import { PagingDto } from 'src/common/dto';

export class CreateEnterpriseDto {
  @IsString()
  enterpriseName: string;

  @IsString()
  enterpriseAddress: string;

  @IsOptional()
  @IsString()
  enterpriseLogo?: string;

  @IsOptional()
  @IsString()
  enterpriseCharter?: string;
}

export class ListEnterpriseDto extends PagingDto {
  @IsOptional()
  @IsString()
  @Length(0, 30)
  enterpriseName?: string;
}

export class UpdateEnterpriseDto extends PartialType(CreateEnterpriseDto) {}
